lowest common ancestor of a binary search tree leetcode solution